//
//  UIHomeCell.swift
//  HHSwift
//
//  Created by qk-huahong on 2019/5/19.
//  Copyright © 2019 huahong. All rights reserved.
//

import UIKit

class UIHomeCell: UICollectionViewCell {
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        self.layer.borderColor = UIColor.lightGray.cgColor
        self.layer.borderWidth = 0.5
        
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    
    lazy var contentLabel:UILabel = {
       
        let contentLabel = UILabel(frame: self.bounds)
        contentLabel.numberOfLines = 0
        self.addSubview(contentLabel)
        contentLabel.textAlignment = .center
//        contentLabel.backgroundColor = UIColor(red: CGFloat(arc4random_uniform(256))/255.0, green: CGFloat(arc4random_uniform(256))/255.0, blue: CGFloat(arc4random_uniform(256))/255.0, alpha: 1.0)
        
        return contentLabel
    }()
}
